<div class="fly-header layui-bg-black">
    <div class="layui-container">
        <a class="fly-logo" href="/">
        <#--<img src="/assets/images/logo.png" alt="layui" style="width: 137px;height: 60px;">-->
        </a>
        <ul class="layui-nav fly-nav layui-hide-xs">
            <li class="layui-nav-item layui-this">
                <a href="${context.contextPath}/index"><i class="iconfont icon-jiaoliu"></i>交流</a>
            </li>
        </ul>
        <ul class="layui-nav fly-nav-user">
        <#if _user ?? >
            <input type="hidden" id="_online" value="online"/>
            <li class="layui-nav-item">
                <a class="fly-nav-avatar" href="javascript:;">
                    <cite class="layui-hide-xs">${_user.nickName!''}</cite>
                    <#if (_user.avatar)?? >
                        <img src="${context.contextPath}/oss/rest/download/${_user.avatar!''}" alt=" ">
                    <#else>
                        <img src="/assets/images/avatar/default.png" alt=" ">
                    </#if>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="${context.contextPath}/my/set"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
                    <dd><a href="${context.contextPath}/my/message"><i class="iconfont icon-tongzhi"
                                                                       style="top: 4px;"></i>我的消息</a>
                    </dd>
                    <dd><a href="${context.contextPath}/my/home"><i class="layui-icon"
                                                                    style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a>
                    </dd>
                    <hr style="margin: 5px 0;">
                    <dd><a href="${context.contextPath}/logout" style="text-align: center;">退出</a></dd>
                </dl>
            </li>
        <#else>
            <!-- 未登入的状态 -->
            <li class="layui-nav-item">
                <a class="iconfont icon-touxiang layui-hide-xs" href="user/login.html"></a>
            </li>
            <li class="layui-nav-item">
                <a href="${context.contextPath}/login">登入</a>
            </li>
            <li class="layui-nav-item">
                <a href="${context.contextPath}/reg/addDataPage">注册</a>
            </li>
        </#if>
        </ul>
    </div>
</div>
<script type="text/javascript" src="${context.contextPath}/assets/js/views/nav_first.js"></script>